package com.hd.zx.qt.batch.writer;

import com.hd.zx.qt.pojo.User;
import lombok.extern.slf4j.Slf4j;
import org.springframework.batch.item.ItemWriter;

import java.util.List;

/**
 * <h3>partitionjob</h3>
 * <p>UserWriter</p>
 *
 * @author : hduong
 * @version : 1.0
 * @date : 2020-09-07 18:01
 **/
@Slf4j
public class UserWriter implements ItemWriter<User> {


    @Override
    public void write(List<? extends User> items) throws Exception {
        log.info("****************helloWorld************************");
        for(User user : items){
            log.info("处理的对象是:{}",user);
        }
    }
}
